<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"

	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">
	$(document).ready(
			function() {
			
			$("#all").click(
						function() {
					var all =document.getElementById("all");  
					if(all.checked==true){
					var multi = document.getElementsByName('multi_sel_str');
					for(var i=0;i<multi.length;i++){   
						multi[i].checked=true;
					  }			
					}else{
					var multi = document.getElementsByName('multi_sel_str');
					for(var i=0;i<multi.length;i++){   
						multi[i].checked=false;
					  }	
					}
					 	
				});		
			$("#szPower").click(
						function() {
							var dd = $("input[name=multi_sel_str]:checked");
							if(dd.length == 0){
								alert("请选择审核的记录");
								return false;
							}else{
								//window.location.href="<%=basePath%>setting/reviewsettingdate.ct";
								$("#queryUserForm").attr("action","${rootPath}/setting/frozencalcudeupdate.ct");
								$("#queryUserForm").submit();
								document.getElementById("szPower").disabled=true;
								return true;
							}
						});
			});
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="queryUserForm" namespace="/pages" action="calcusearch.ct" method="post"
			theme="simple">
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br />
					<span class="sub-title"></span>
				</h2>
			</div>
	
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">冻结清算信息列表</h2>

					</td>
				</tr>
					
				<tr>
					<td colspan="4" align="left">
					   		<s:submit id="szPower" value="冻结申请" />
					   		<s:hidden name="merchantno" value="%{#request.merchantno}"/>
					   		<s:hidden name="batchno" value="%{#request.batchno}"/>
					</td>&nbsp;&nbsp;&nbsp;&nbsp;
				</tr>
				<tr>
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/setting/frozencalcudesearch.ct?merchantno=${merchantno}&batchno=${batchno}&currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			<table id="tableList" width="100%" class="table">
				<thead>
					<tr>
					    <th>选择<input type="checkbox" id="all" > </th>
						<th>商户号</th>
						<th>商户名称</th>
						<th>终端号</th>
						<th>系统跟踪号</th>
						<th>交易流水号</th>
						<th>卡号</th>
						<th>交易日期</th>
						<th>交易时间</th>
						<th>交易状态</th>
						<th>交易金额（元）</th>
						<th>商户手续费用（元）</th>
						<th>总结算金额（元）</th>
						<th>清算状态</th>
						<th>批次号</th>
						<th>清算日期</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.calcuList" status="stat" id="element">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
							<td align="center">
								<s:checkboxlist name="multi_sel_str" list="#{#element.etstrace:''}"  theme="simple" />
					        </td>
							<td align="center">
								 <s:property value="#element.merno"/> 
						    </td>
						    <td align="center">
								 <s:property value="#element.realname"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.etstermid"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.etstrace"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.termtrace"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.account"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.termdate"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.termtime"/> 
						    </td>
						    <td align="center">
								 
								<s:if test="#element.respcode==\"00\"">
					                               成功
					        </s:if>
					        <s:else>
					                              失败
					        </s:else>
								 
						    </td>
						     
							<td align="center">
								 <s:property value="#element.amount"/> 
						    </td>
						    <td align="center">
								 <s:property value="#element.merfee"/> 
						    </td>
						    <td align="center">
								 <s:property value="#element.calcuamount"/> 
						    </td>
						    <td align="center">
								 
								<s:if test="#element.settflag==\"Y\"">
					                               已清算
					        </s:if>
					        <s:else>
					                              未清算
					        </s:else>
								 
						    </td>
						     <td align="center">
								 <s:property value="#element.settbatch"/> 
						    </td>
						     <td align="center">
								 <s:property value="#element.calcudate"/> 
						    </td>
						    </tr>
						</s:iterator>
						<tr>
			<td  colspan="1" align="center">

				
			</td>
		</tr>
				</tbody>
			</table>
		</s:form>
	</div>
	<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>
